package com.sanmu.bean;

public class Car {
    private Integer id;
    private String name;
    private String price;
    //默认无参构造,不可以去掉因为创建对象是用的反射机制
    public Car() {
    }

    public Car(String price, String name, Integer id) {
        this.price = price;
        this.name = name;
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }
}
